package com.example.demo.service;

import com.example.demo.bean.Question;
import com.example.demo.bean.Word;
import com.example.demo.dao.QuestionDao;
import com.example.demo.dao.WordDao;
import com.example.demo.util.ExcelUtil;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Jim Chen
 * @date 2021-04-15
 */
@Service
public class QuestionService {

    @Autowired
    private QuestionDao questionDao;



    public List<Question> findAll() {
        return questionDao.findAll();
    }


  public Question getNext(Integer id) {
    return questionDao.getById(id);
  }
}
